package com.sky.service.Report;

import com.sky.vo.OrderCountVO;
import com.sky.vo.SalesTop10ReportVO;
import com.sky.vo.TurnoverVO;
import com.sky.vo.UserCountVO;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.time.LocalDate;

/**
 * @Author 褚金龙
 * @Date 2024/10/15 21:55
 */
public interface ReportService {
    /**
     * 营业额统计
     * @param begin
     * @param end
     * @return
     */
    TurnoverVO getTurnoverStatistics(LocalDate begin, LocalDate end);

    /**
     * 用户数据统计
     * @param begin
     * @param end
     * @return
     */
    UserCountVO getUserCount(LocalDate begin, LocalDate end);

    /**
     * 订单数据统计
     * @param begin
     * @param end
     * @return
     */
    OrderCountVO getOrderCount(LocalDate begin, LocalDate end);

    /**
     * 销量排名
     * @param begin
     * @param end
     * @return
     */
    SalesTop10ReportVO getSalesTop10(LocalDate begin, LocalDate end);


    void getExport(HttpServletResponse response) throws IOException;
}
